import forumAxios from '../utils/request'

const BASE_URL = '/userUser'

export async function getUserFollowAuthor(userId, authorId) {
    console.log(userId, authorId);
    const resp = await forumAxios.get(BASE_URL + '/getUserFollowAuthor', {
        params: {
            userId: userId,
            authorId: authorId
        }
    })
    console.log(resp);

    return resp
}



export async function unFollowAuthor(userId, authorId) {
    console.log(userId, authorId);
    const resp = await forumAxios.get(BASE_URL + '/unFollowAuthor', {
        params: {
            userId: userId,
            authorId: authorId
        }
    })
    console.log(resp);

    return resp
}

export async function followAuthor(userId, authorId) {
    console.log(userId, authorId);
    const resp = await forumAxios.get(BASE_URL + '/followAuthor', {
        params: {
            userId: userId,
            authorId: authorId
        }
    })
    console.log(resp);

    return resp
}